const state = {
  level: 1,
  mode: 'same-level'
}

const getters = {
  getConfig (state) {
    return { level: state.level, mode: state.mode }
  }
}

const actions = {

}

const mutations = {
  changeLevel (state, payload) {
    state.level = payload.level
    state.mode = payload.mode
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}